package com.bw.contorller;

import com.alibaba.fastjson.JSONObject;
import com.bw.service.TrafficServiceimp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

//控制类
//表明此类是控制
@RestController
@RequestMapping("user")
public class TrafficContirller {
    @Autowired
    TrafficServiceimp service;
    @RequestMapping("/shop_new_visit_order_stats_zb1")
    public List<JSONObject> shop_new_visit_order_stats_zb1(){

            List<JSONObject> findchcount = service.findchcount();
            return findchcount;
    }
    @RequestMapping("/shop_notvisit_order_stats_zb1")
    public List<JSONObject> shop_notvisit_order_stats_zb1(){

            List<JSONObject> findchcount = service.findchcount2();
            return findchcount;
    }
    @RequestMapping("/shop_oldvisit_order_stats_zb3")
    public List<JSONObject> shop_oldvisit_order_stats_zb3(){

            List<JSONObject> findchcount = service.findchcount3();
            return findchcount;
    }
}
